package com.amkai.aes.webservice.binary.objecthandler;

import java.io.Serializable;

import com.amkai.aes.aescommon.service.binary.job.SearchCountJob;
import com.amkai.aes.aescommon.service.search.SearchParameter;
import com.amkai.aes.server.search.SearchManager;
import com.amkai.aes.webservice.binary.JobObjectHandler;

//AES-8333
public class SearchCountHandler implements JobObjectHandler<SearchCountJob, Serializable, Serializable> {

	public Serializable process(SearchCountJob job, Serializable searchParameter) throws Exception {
		Long res = SearchManager.getResultCount((SearchParameter)searchParameter, job.getModuleDepartment());
		return res;
	}

}
